<%@page import="com.wh.minihelp.user.domain.ChildInfo"%>
<%@page import="java.util.*"%>
<%@page import="com.wh.db.Page"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.wh.minihelp.flower.domain.ChildFlower"%>
<html>
<head>
<%@ include file="/WEB-INF/common/init.jsp"%>
<title>最新记录的红花信息</title>
<style type="text/css">
body {
	margin: 0;
	padding: 0;
}
</style>
</head>
<body>
	<table class="gridtable">
		<tr>
			<th colspan="5" align="left">
	 			<div style='background-color: #C2DFFF;'>最新动态(10条)</div>
	 		</th>
		</tr>
 		<tr>
			<th style='width:22%;' nowrap>日期</th>
			<th style='width:18%' nowrap>小孩</th>
			<th style='width:8%;' nowrap>数量</th>
			<th style='width:30%px;' nowrap>类型</th>
			<th style='width:18%' nowrap>记录人</th>
		</tr>
		<%
			List<ChildFlower> flowers = (List<ChildFlower>) request.getAttribute("flowers");
			int size = flowers.size();
			for (int i = 0; i < size; i++) {
				ChildFlower cf = flowers.get(i);
		%>
		<tr class="tr<%=i % 2%>">
			<td><%=cf.getFlowerDate()%></td>
			<td><%=cf.getChildName()%></td>
			<td><%=cf.getFlowerNumber()%></td>
			<td><%=cf.getFlowerName()%></td>
			<td><%=cf.getOperAcountInfo().getName()%></td>
		</tr>
		<tr class="tr<%=i % 2%>">
			<td colspan="5"><%=cf.getFlowerDesc()%></td>
		</tr>
		<%
			}
		%>

	</table>